package cn.itcast.haoke.dubbo.api.config;

import com.aliyun.oss.OSSClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
/**
 * @author GaoLeiLei
 * @version 1.0
 * @Title: 初始化oss
 * @Description:
 * @Copyright: Copyright (c) 2019
 * @date 2019/11/2
 */
@Configuration
//@PropertySource("classpath:aliyun.properties")
//@ConfigurationProperties(prefix = "aliyun")
@Data
public class AliyunConfig {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String urlPrefix;

   /* @Bean
    public OSSClient oSSClient() {
        return new OSSClient(endpoint, accessKeyId, accessKeySecret);
    }
*/
}
